package com.homework.note.Service.impl;

import com.homework.note.Model.User;
import com.homework.note.Repository.UserRepository;
import com.homework.note.Service.ShiroUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author htyu
 * @date 2019/3/10
 */
@Service
public class ShiroUserServiceImpl implements ShiroUserService {

        @Autowired
        UserRepository userRepository;


        @Override
        public User findByName(String name) {
            return userRepository.findByName(name);
        }



}
